﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Owin;
using CorreoSocialWeb.Models;
using CorreoSocialWeb.Views;

using Subgurim.Controles;
using Subgurim.Controles.GoogleChartIconMaker;

namespace CorreoSocialWeb.Views
{
    public class TamanoDePaqueteComboItemsHelper
    {
        public static List<TamanoDePaquete> Get()
        {
            List<TamanoDePaquete> lista = new List<TamanoDePaquete>();

            lista.AddRange(new CorreoSocialDbContext().TamanoDePaquetes.Where(x => x.Activo && !x.Borrado).OrderBy(x => x.NúmeroDeTamaño));

            lista.Insert(0, new TamanoDePaqueteSeleccionar());

            return lista;
        }
    }
}